package com.example.javabasic.shejimoshi.danli.demo3;

public class Singleton {
    private Singleton(){

    }


    private static class Instance{
        private static final Singleton instance = new Singleton();
        public static Singleton getInstance(){
            return Instance.instance;
        }
    }
}
